def wrapper(fn):
    def inner():
        print('登录验证')
        return fn()

    return inner()


@wrapper
def fn1():
    print('评论内容')


@wrapper
def fn2():
    print('写博客')
